package ssx.demo.nacos_consumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import ssx.demo.nacos_consumer.myfeign.F;

@RestController
public class C {

    //此值在 nacos配置中心里面
    @Value("${username123}")
    private String s;

    @Autowired
    F f;

    @RequestMapping("/c")
    public String ff(){
        return s+" ---- "+f.hello();
    }
}
